package math;

import java.math.BigInteger;

public class demo1 {
    public static void main(String[] args) {
        double a = Math.sqrt(100);//10.0
        double b = Math.cbrt(1000);//10
        double c = Math.pow(2, 3);//8.0

        double d = Math.ceil(2.1);//3.0
        double e = Math.floor(2.9);//2.0
        //小数部分>0.5远离0
        // <=0.5靠近0
        double f = Math.round(-2.3);
        System.out.println("f = " + f);
        int max = Math.max(1, 2);
        int min = Math.min(1, 2);

    }
}
